package com.zzyl.service.impl;

import com.zzyl.dto.RoleDto;
import com.zzyl.entity.RoleResource;
import com.zzyl.mapper.RoleResourceMapper;
import com.zzyl.service.RoleResourceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class RoleResourceServiceImpl implements RoleResourceService {
    @Autowired
    private RoleResourceMapper roleResourceMapper;


    @Override
    public List<String> findCheckedResources(Long roleId) {
        return roleResourceMapper.findCheckedResources(roleId);
    }

    @Override
    public void deleteByPrimaryKey(Long id) {
        roleResourceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public void batchInsert(List<RoleResource> list) {
        roleResourceMapper.batchInsert(list);
    }
}
